

import Person
import json

class Student(Person):
    className = ''
    teacher = {}

    def __int__(self, className='', teacher=Person()):
        self.className = className
        self.teacher = teacher
        Person.__int__(self)

    def toString(self):
        return json.dumps(self)
def main():

    tom = Person('Tom',34,'男')

    s = Student('一班', tom)
    print(s.toString())

if (__name__ == '__main__'):
    main()